package buffbuildergui;

import java.awt.Color;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import java.awt.event.MouseMotionListener;

import java.util.ArrayList;

import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRootPane;
import javax.swing.JScrollPane;
import javax.swing.ListSelectionModel;
import javax.swing.TransferHandler;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;

/**
 * @param
 * @param buffToAttach
 */
public class BuffPanel extends EntityPanel{
    FinishCondition fc;
    
    public BuffPanel(String name,Buff buffToAttach,EntityPanel paren) {    
        super(name,buffToAttach,paren);
        
        // add plugs        
        setBackground(new Color(0.5f,0.5f,1.0f));
        
        OutPort out = new OutPort(5,OutPort.eIA,this);// instant actions
        out.setBackground(new Color(171, 171, 255));
        outies.add(out);
        add(out);
        out.setBounds(260,40,20,30);
        
        out = new OutPort(2,OutPort.ePA,this);// periodic actions
        out.setBackground(new Color(146, 146, 255));
        outies.add(out);
        add(out);
        out.setBounds(260,75,20,30);
        
        out = new OutPort(2,OutPort.eOA,this);// overtime actions
        out.setBackground(new Color(112, 112, 255));
        outies.add(out);
        add(out);
        out.setBounds(260,110,20,30);
        
        out = new OutPort(4,OutPort.eEM,this);// entity modifiers
        out.setBackground(new Color(38, 38, 255));
        outies.add(out);
        add(out);
        out.setBounds(260,145,20,30);
        
        out = new OutPort(4,OutPort.eBM,this);// entity bool modifiers
        out.setBackground(new Color(0, 0, 255));
        outies.add(out);
        add(out);
        out.setBounds(260,180,20,30);
        
        out = new OutPort(4,OutPort.eFC,this);// finish conditions
        out.setBackground(new Color(0, 0, 182));
        outies.add(out);
        add(out);
        out.setBounds(260,215,20,30);
        
    }
}
